package chapter05.e3;

import java.util.Locale;

public class e3 {
    public static void main(String[] args) {
        String str = "abed";
        System.out.println("将字符串转换为字符数组后的结果：");
        char[] charArray = str.toCharArray(); // 字符串转换为字符数组
        for (int i = 0; 1 < charArray.length; i++) {
            if (i != charArray.length - 1) {
                System.out.println(charArray[i] + ",");
            } else {
                System.out.println(charArray[i]);
            }
        }
        System.out.println("将int值转化为String类型之后的结果：" + String.valueOf(12));
        System.out.println("将字符串转化成大写字符之后的结果：" + str.toUpperCase());
        System.out.println("将字符串转化成小写字母之后的结果：" + str.toLowerCase());
    }
}
